package com.xfmax.sharesdk;

import com.xfmax.sharesdk.model.IMediaObject;
import com.xfmax.sharesdk.model.ShareData;

/**
 * Created by base on 18/2/2.
 */

public class ShareApi {
    private ShareData shareData = new ShareData();

    private ShareApi() {

    }

    public static ShareApi make() {
        return new ShareApi();
    }

    public ShareApi withUrl(String url) {
        shareData.url = url;
        return this;
    }

    public ShareApi withImage(IMediaObject media) {
        shareData.media = media;
        return this;
    }

    public ShareApi withText(String text) {
        shareData.text = text;
        return this;
    }

    public ShareApi withDescription(String description) {
        shareData.description = description;
        return this;
    }

    public ShareApi withTitle(String title) {
        shareData.title = title;
        return this;
    }


}
